<!--公司违规查询-->
<template>
<div class="public-common">
    <div class="public-title">请选择查询条件</div>
    <el-form :model="form" label-width="120px">
        <el-row>

            <el-col :span="12">
                <el-form-item label="名称">
                    <el-input size="small" v-model="form.ming" placeholder="请输入投诉编号/被投诉车号/驾驶员" ></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                 <el-button type="primary" style=" margin-left: 10px;">搜索</el-button>
            </el-col>
        </el-row>
    </el-form>
    <div class="public-title" style="margin-top: 20px;">违规信息列表</div>
    <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
                label="违规单号" fixed="left" prop="a1">
            </el-table-column>
            <el-table-column
                label="违规车号" prop="a2">
            </el-table-column>
            <el-table-column
                label="违规司机" prop="a3">
            </el-table-column>
            <el-table-column
                label="违规单位" prop="a4">
            </el-table-column>
            <el-table-column
                label="违规类别" prop="a5">
            </el-table-column>
            <el-table-column
                label="发生时间" prop="a6">
            </el-table-column>
            <el-table-column
                label="发生地点" prop="a7">
            </el-table-column>
            <el-table-column
                label="稽查科转办日期" prop="a8">
            </el-table-column>
            <el-table-column
                label="违规状态" prop="a9">
            </el-table-column>
            <el-table-column
                label="处理结果" prop="a10">
            </el-table-column>
            <el-table-column
                label="实际扣分" prop="a11">
            </el-table-column>
            <el-table-column
                label="罚款金额" prop="a12">
            </el-table-column>
            <el-table-column
                label="录入时间" prop="a13">
            </el-table-column>
            <el-table-column
                label="经办人" prop="a14">
            </el-table-column>
            <el-table-column
                label="处理时间" prop="a15">
            </el-table-column>
            <el-table-column
                label="处理人" prop="a16">
            </el-table-column>

        </el-table>
        <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
        </el-pagination>
</div>
</template>

<script>
export default {
    data(){
        return {
              form:{
                  ming:'',
              },
              tabledata:[
                {
                    a1: 'WG123367',
                    a2: '陕A12367',
                    a3: '丁建国',
                    a4: '宝马',
                    a5: '闯红灯',
                    a6: '2018-11-10',
                    a7: '西安南站',
                    a8: '2018-11-10',
                    a9: '已解决',
                    a10: '已解决',
                    a11: '6分',
                    a12: '￥300',
                    a13: '2018-11-10',
                    a14: '丁建国',
                    a15: '2018-11-10',
                    a16: '刘一声',
                },
              ],
              page:{
                now:1,
                pagesize:10,
                sizes:[2,10, 20, 50, 100],
                total:0,
                key:''
              },
              item1:[
              	{text:'2018年',value:'0'},
              	{text:'2019年',value:'1'},
              ],
              item2:[
              	{text:'1月',value:'0'},
              	{text:'2月',value:'1'},
              	{text:'3月',value:'2'},
                {text:'4月',value:'3'},
                {text:'5月',value:'4'},
                {text:'6月',value:'5'},
                {text:'7月',value:'6'},
                {text:'8月',value:'7'},
                {text:'9月',value:'8'},
                {text:'10月',value:'9'},
                {text:'11月',value:'10'},
                {text:'12月',value:'11'},
              ],
              item3:[
              	{text:'1月',value:'0'},
              	{text:'2月',value:'1'},
              	{text:'3月',value:'2'},
              	{text:'4月',value:'3'},
              	{text:'5月',value:'4'},
              	{text:'6月',value:'5'},
              	{text:'7月',value:'6'},
              	{text:'8月',value:'7'},
              	{text:'9月',value:'8'},
              	{text:'10月',value:'9'},
              	{text:'11月',value:'10'},
              	{text:'12月',value:'11'},
              ],
              item4:[
              	{text:'统计表',value:'0'},
              	{text:'扇形图',value:'1'},
              	{text:'柱状图',value:'2'},
              ],
        }
    },
    methods:{
        search(){
            alert("search")
        },
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>

<style>
  .el-form-item .el-form-item__label{ width: 90px !important;}
  .el-form-item .el-form-item__content{ margin-left: 90px !important;}
.public-common .el-form-item .el-input{ width: 100%;}
.public-title{line-height: 30px;background-color: #deecfd;padding:0 10px;margin-bottom:20px;color: #15428F}

</style>
